#include <stdio.h>
int Fun(void);
int main()
{	    	  	 	 
    int sum;
    sum = Fun();
    printf("sum=%4d\n", sum);
    return 0;
}	    	  	 	 

int Fun(void)
{	    	  	 	 
    int i, j, k, sum = 0;
    printf("The result:\n");
    for (i = 1; i <= 3; i++)
    {	    	  	 	 
        for (j = 1; j <= 5; j++)
        {	    	  	 	 
            for (k = 0; k <= 6; k++)
            {	    	  	 	 
                if (i + j + k == 8)
                {	    	  	 	 
                    printf("red:%4d white:%4d black:%4d\n", i, j, k);
                    sum = sum + 1;
                }
            }
        }
    }
    return sum;
}	  